var xmlHttp;
		
        function addEmployee(str)
        {
        	if(str == "")
        	{}
        	else
        	{
            	xmlHttp=GetXmlHttpObject();
            	if (xmlHttp==null)
            	{
                	alert ("Your browser does not support AJAX!");
                	return;
            	}
            	var url = "employee";
            	url = url+ "?mode=quickInsert&name=" + str;
            	xmlHttp.onreadystatechange = stateEmployeeChanged;
            	xmlHttp.open("GET",url,true);
            	xmlHttp.send(null);
        	}
        }
        
        function stateEmployeeChanged()
        {
        	
        	if (xmlHttp.readyState == 4)
        	{
        		var xmlDoc = xmlHttp.responseXML.documentElement; 
        		var id=xmlDoc.getElementsByTagName("id")[0].childNodes[0].nodeValue;
        		alert(id);
        	}
        }